package models;

import javax.persistence.Entity;

import play.data.validation.Required;
import play.db.jpa.Model;

/**
 * 
 * 
 * @author Hesham Al-Razaz
 * 
 * @param String
 *            name it represents the name of the relation
 * 
 */

@Entity
public class TopicRelationNames extends Model {

	@Required
	public String name;

	public TopicRelationNames(String name) {
		this.name = name;

	}

	/**
	 * @author Ahmed Mahmoud
	 * @return
	 * 
	 */
	public boolean cascadeDelete() {
		this.delete();
		return true;
	}

}
